<!DOCTYPE html>
<html>
<body>

<h1>Window Screen 对象</h1>

<h2>Screen 属性</h2>

<div id="demo"></div>

<script>
let text = "总宽度/高度：" + screen.width + "*" + screen.height + "<br>" +
"可用宽度/高度：" + screen.availWidth + "*" + screen.availHeight + "<br>" +
"颜色深度：" + screen.colorDepth + "<br>" +
"颜色分辨率：" + screen.pixelDepth;

document.getElementById("demo").innerHTML = text;
</script>

</body>
</html>
